﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QinTools.Utilities;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace QinTools.Model.Characters
{
    public class CharacterAbility : INotifyPropertyChanged
    {
        public CharacterAbility()
        {
            Techniques = new ObservableCollection<string>();
        }

        public event PropertyChangedEventHandler PropertyChanged;

        #region AbilityName Notified Property
        private string _AbilityName;
        public string AbilityName
        {
            get
            {
                return _AbilityName;
            }
            set
            {
                _AbilityName = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs(this.GetSymbolName(p => p.AbilityName)));
                }
            }
        }
        #endregion
        #region AbilityLevel Notified Property
        private int _AbilityLevel;
        public int AbilityLevel
        {
            get
            {
                return _AbilityLevel;
            }
            set
            {
                _AbilityLevel = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs(this.GetSymbolName(p => p.AbilityLevel)));
                }
            }
        }
        #endregion
        public ObservableCollection<string> Techniques { get; private set; }
    }
}
